package com.decorate.demo02;

/**
 * 抽象装饰者角色
 */
public class Decorator implements Component{
    private Component component;
    public Decorator(){}

    public Decorator(Component component){
        this.component = component;
    }

    // 装饰类委派给构建
    @Override
    public void operation() {
        this.component.operation();
    }
}
